package org.jeecg.modules.xsqj.service.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.jeecg.modules.xsqj.entity.Xsqj;
import org.jeecg.modules.xsqj.mapper.XsqjMapper;
import org.jeecg.modules.xsqj.service.IXsqjService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.text.SimpleDateFormat;

/**
 * @Description: 学生请假
 * @Author: jeecg-boot
 * @Date:   2021-05-12
 * @Version: V1.0
 */
@Service
public class XsqjServiceImpl extends ServiceImpl<XsqjMapper, Xsqj> implements IXsqjService {

    @Override
    public void saveOrUpdateInfo(JSONArray form_component_values, String originator_userid) {
        Xsqj xsqj = new Xsqj();
        for (int i = 0; i < form_component_values.size(); i++) {
            JSONObject jsonObject = form_component_values.getJSONObject(i);
            String name = jsonObject.getString("name");
            String value = jsonObject.getString("value");
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");


        }
    }
}
